package com.ellen.mac.chatdemo.adpter;

import com.avos.avoscloud.AVUser;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ellen.mac.chatdemo.R;

import java.util.List;

/**
 * Created by j on 2017/12/1.
 */

public class UserInfoAdapter extends BaseQuickAdapter<AVUser, BaseViewHolder> {
    public UserInfoAdapter(int layoutResId, List data) {
        super(layoutResId, data);
    }


    @Override
    protected void convert(BaseViewHolder helper, AVUser avUser) {
        //TODO json

        helper.setText(R.id.name, avUser.getUsername());
        helper.addOnClickListener(R.id.item);
    }

}
